package Day03;

public class Text6 {
    //递归求 N 的阶乘
    public static void main(String[] args) {
        System.out.println(add(3));
    }

    public static int add(int n){
        if(n == 1){
            return n;
        }
        int temp = n * add(n -1);
        return temp;
    }
}
